home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 1117 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. Path: fido.asd.sgi.com!austern
  2. From: clamage@Eng.Sun.COM (Steve Clamage)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: IOSTREAM question : should ends manipulato
  5. Date: 16 Apr 1996 13:17:45 PDT
  6. Organization: Sun Microsystems Inc.
  7. Approved: austern@isolde.mti.sgi.com
  8. Message-ID: <4l0c0o$qm1@engnews1.Eng.Sun.COM>
  9. References: <sdm-1604961139410001@galois.ecs.soton.ac.uk>
  10. Reply-To: clamage@Eng.Sun.COM
  11. NNTP-Posting-Host: isolde.mti.sgi.com
  12. X-Original-Date: 16 Apr 1996 14:48:56 GMT
  13. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  14.     iQBVAwUBMXQAaky4NqrwXLNJAQEg7gH/WW3zuLX8dYMas6YaFRU64Sazs8u7uyrJ
  15.     Z4hAVKC1+aSvSjZK4c8oEbnz+2ZLmoLjkW0uPTZ0ij61fhSaq24HoQ==
  16.     =cmYF
  17. Originator: austern@isolde.mti.sgi.com
  18.  
  19. In article 1604961139410001@galois.ecs.soton.ac.uk, S.D.Maclean@ecs.soton.ac.uk (Stuart Maclean) writes:
  20. >
  21. >I noticed that manipulator "endl" synchronises with the external
  22. >representation, but "ends" does not.  Tracing our IOStream library,
  23. >libg++-2.7.1, it indeed does not do a flush when using "ends". 
  24.  
  25. That is correct. It has always been the case (and is still the case
  26. in the draft standard) that "ends" inserts a null character but does
  27. not flush, and "endl" inserts a newline character followed by a flush.
  28.  
  29. ---
  30. Steve Clamage, stephen.clamage@eng.sun.com
  31. ---
  32. [ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
  33.                 newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  34.   comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  35.   Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  36.   Comments? mailto:std-c++-request@ncar.ucar.edu 
  37. ]
  38.